//
//  YYSZiXunCell.m
//  FanLaiWu
//
//  Created by gonglei on 17/3/16.
//  Copyright © 2017年 yys. All rights reserved.
//

#import "YYSZiXunCell.h"

@interface YYSZiXunCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;
@property (weak, nonatomic) IBOutlet UILabel *contentlabel;

@end

@implementation YYSZiXunCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}
-(void)setNews:(News *)news
{
    _news = news;
    [self.iconImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",BASE_URL_TEST,news.img]]];
    self.contentlabel.text = news.title;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
